<?php


namespace app\index\model;

use app\index\model\Base;

class Comments extends Base
{
    protected $pk = 'id';
    public function commentsImg()
    {
        return $this->hasMany('CommentsImg', 'c_id', 'c_id');
    }
    public function commentList()
    {
        return $this->hasMany('CommentList', 'c_id', 'c_id');
    }
    public function user()
    {
        return $this->belongsTo('app\user\model\User', 'u_id', 'u_id');
    }
}
